package com.hundun.vision.biz.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author ：RuoChen
 * @date ：16:09 2024/11/29
 * @description：合约状态
 */
@AllArgsConstructor
@Getter
public enum ContractStatus {
    TRADING("TRADING", "交易中");

    private String status;

    private String description;

    public static String getDescription(String type) {
        for (ContractStatus status : ContractStatus.values()) {
            if (status.getStatus().equals(type)) {
                return status.getDescription();
            }
        }
        return null;
    }
}